﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Maman18
{
    /// <summary>
    /// Represents a box
    /// </summary>
    public class Box
    {
        #region Properties

        /// <summary>
        /// Gets or sets the box side
        /// </summary>
        public int Side { get; set; }

        /// <summary>
        /// Gets or sets the box height
        /// </summary>
        public int Height { get; set; }

        /// <summary>
        /// Gets this box volume
        /// </summary>
        public int Volume
        {
            get 
            {
                return (Box.CalcVolume(this.Side, this.Height));
            }
        }

        #endregion

        #region Static Methods

        /// <summary>
        /// Calculate a box volume
        /// </summary>
        /// <param name="side"></param>
        /// <param name="height"></param>
        /// <returns></returns>
        public static int CalcVolume(int side, int height)
        {
            return (side * side * height);
        }
           

        #endregion
    }
}
